package com.company.corelib.facade;

import java.util.List;

import com.company.corelib.dao.UserDAO;
import com.company.corelib.model.Role;
import com.company.corelib.model.User;

public class UserFacade {
	UserDAO dao = new UserDAO();
	public List<User> getAllUser(){
		return dao.getAllUser();
	}
	public String create(User user){
		return dao.create(user);
	}
	public String update(User user){
		return dao.update(user);
	}
	public User getUserById(String id){
		return dao.getUserById(id);
	}
	public String delete(String id){
		return dao.delete(id);
	}
	public List<Role> getAllRole(){
		return dao.getAllRole();
	}
	public Role getRoleById(int roleId){
		return dao.getRoleById(roleId);
	}
}
